package com.bah.tract.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "charge_number", uniqueConstraints = { @UniqueConstraint(columnNames = {
        "tax_code", "tele_work", "number" }) })
public class ChargeNumber extends Task {
    private String number;

    private String taxCode;

    private boolean teleWork;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    @Column(name = "tax_code")
    public String getTaxCode() {
        return taxCode;
    }

    public void setTaxCode(String taxCode) {
        this.taxCode = taxCode;
    }

    @Column(name = "tele_work")
    public boolean isTeleWork() {
        return teleWork;
    }

    public void setTeleWork(boolean teleWork) {
        this.teleWork = teleWork;
    }

}
